package com.beici.waterghost.controller;

import com.beici.waterghost.model.resultes;
import com.beici.waterghost.service.impl.linksServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auther WaterGhost
 * @date 2022/3/6 15:06
 */
@RestController
@CrossOrigin

public class linksController {

    @Autowired
    private linksServiceImpl linksService;

    @GetMapping("/getlinks")
    public resultes getlinks(){
        return linksService.queryLinks();
    }
}
